<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>后台用户管理-<?php echo (C("cms_name")); ?></title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<link rel='stylesheet' type='text/css' href='__PUBLIC__/Admin/css/admin_style.css' />
	<script type="text/javascript" src="__PUBLIC__/js/jquery.min.js"></script>
	<script type="text/javascript" src="__PUBLIC__/Admin/js/function.js"></script>
	<style>td{ height:22px; line-height:22px}</style>
</head>
<body>
	<table width="98%" border="0" cellpadding="9" cellspacing="1" class="table">
		<tr>
			<td colspan="9" class="table_title">
				<span class="fl">会员管理</span>
				<span class="fr">
					<!--<a href="<?php echo U('Goods/add');?>">添加物品</a>-->
				</span>
			</td>
            <tr>
            <td colspan="9" class="table_title" ><form name="searchForm" id="searchForm" action="">
                <input type="hidden" name="g" value="Admin" />
                <input type="hidden" name="m" value="Member" />
                <input type="hidden" name="a" value="index" />
                <!--开始时间
                    <input id="start_time" name="search[start_time]" type="text" onClick="WdatePicker({dateFmt:'yyyy-M-d HH:mm'})" value="<?php echo ($_GET['search']['start_time']); ?>" />--> 
                会员搜索
                <input id="nickname" name="nickname" type="text"  value="<?php echo ($_GET['nickname']); ?>" />
                <input type="submit" value=" 搜索 " class="button" />
              </form></td>
          	</tr>
			<tr class="list_head ct">
				<td width="70">ID</td>
				<td >用户头像</td>
				<td >会员名称</td>
				<td >是否会员</td>
				<td >OpenId</td>
				<td >体验期</td>
				<td width="70">是否授权</td>
				<td width="70">注册时间</td>
				<td width="100">管理操作</td>
			</tr>
	    <?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr class='tr'>
				<td align='center'><?php echo ($vo["member_id"]); ?></td>
				<td align='center'><img src="<?php echo ($vo["headimgurl"]); ?>" width="30px" height="30px" alt="" /></td>
				<td ><?php echo ($vo["nickname"]); ?></td>

				<td align='center'><?php if(($vo["member_state"]) == "1"): ?><font color="red">√</font><?php else: ?><font color="blue">×</font><?php endif; ?> </td>

				<td align='center'><?php echo ($vo["open_id"]); ?></td>
				<td align='center'><?php echo (date('Y-m-d H:i:s',$vo["extime"])); ?></td>
				<td align='center'><?php if(($vo["subscribe"]) == "1"): ?><font color="red">√</font><?php else: ?><font color="blue">×</font><?php endif; ?> </td>

				<td align='center'><?php echo (date('Y-m-d H:i:s',$vo["time"])); ?></td>
				<td align='center'>
					<a href="<?php echo U('Member/edit/',array('id'=>$vo['member_id']));?>">查看</a>
					|<a href="javascript:void(0)" onclick="return confirmurl('<?php echo U('Member/del/',array('id'=>$vo['member_id']));?>','确定删除该会员吗？')">删除</a>
				</td>
			</tr><?php endforeach; endif; else: echo "" ;endif; ?>
		<tr class="tr">
          <td colspan="9" class="pages">
            <?php echo ($page); ?>
          </td>
        </tr>
		</table>
		<script>var version='<?php echo (C("cms_var")); ?>';</script>
		<style>
#footer, #footer a:link, #footer a:visited {
	clear:both;
	color:#0072e3;
	font:12px/1.5 Arial;
	margin-top:10px;
	text-align:center;
	white-space:nowrap;
}
</style>
<div id="footer">程序版本：<?php echo (C("cms_var")); ?>&nbsp;&nbsp;&nbsp;&nbsp;Copyright © 2017-2022 All rights reserved</div>
</body>
	</html>